<?php
use Workerman\Worker;
use Workerman\Lib\Timer;

require_once __DIR__."/../Autoloader.php";

$worker = new Worker();
$worker->onWorkerStart=function($task){
    $time_interval = 2.5;
    Timer::add($time_interval,function(){
       echo "task \n";
    });
};

Worker::runAll();